package com.jinwei.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright Shanghai Hand Co. Ltd.
 *
 * @author liguo.wang@hand-china.com
 * @date 2018/2/1 9:32
 * @version: 1.0
 * @description
 */
@RestController
public class UserController {

    @Value("${jdbc.driverClassName}")
    private String userName;

    @Value("${jdbc.password}")

    private String sex;

    @Value("${jdbc.url}")
    private Integer age;

    @RequestMapping(value = "/user")
    public String getUserInfo() {
        return "userName:" + userName + " sex:" + sex + " age:" + age;
    }


}